package org.example.myleet.p789;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.escapeGhosts(Parser.parse("[[1,0],[0,3]]"), new int[]{0, 1}));
        Assert.isTrue(!solution.escapeGhosts(Parser.parse("[[1,0]]"), new int[]{2, 0}));
        Assert.isTrue(!solution.escapeGhosts(Parser.parse("[[2,0]]"), new int[]{1, 0}));
        Assert.isTrue(!solution.escapeGhosts(Parser.parse("[[5,0],[-10,-2],[0,-5],[-2,-2],[-7,1]]"), new int[]{7, 7}));
        Assert.isTrue(solution.escapeGhosts(Parser.parse("[[-1,0],[0,1],[-1,0],[0,1],[-1,0]]"), new int[]{0, 0}));
    }
}
